<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\VisitorReservesLog
 *
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog query()
 * @mixin \Eloquent
 * @property int $id
 * @property int $visitor_reserves_id 访客预约id
 * @property int $visitor_id 访客id
 * @property int $interviewee_information_id 受访者id
 * @property string $reason 访问原因
 * @property mixed $device_groups 通行方式
 * @property int $source 访问区域
 * @property string $start_time 开始时间
 * @property string $end_time 结束时间
 * @property string $interviewee_name 受访者名称
 * @property string $interviewee_phone 受访者电话
 * @property string $interviewee_openId 受访者openId
 * @property string $visitor_name 访客名称
 * @property string $visitor_telephone 访客电话
 * @property string $visitor_openId 访客openId
 * @property string $appId appId
 * @property int $authorId authorId
 * @property string|null $captcha 验证码
 * @property int|null $passType 通行证类型
 * @property mixed|null $peers 同行
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog whereAppId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog whereAuthorId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog whereCaptcha($value)
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog whereDeviceGroups($value)
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog whereEndTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog whereIntervieweeInformationId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog whereIntervieweeName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog whereIntervieweeOpenId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog whereIntervieweePhone($value)
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog wherePassType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog wherePeers($value)
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog whereReason($value)
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog whereSource($value)
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog whereStartTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog whereVisitorId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog whereVisitorName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog whereVisitorOpenId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog whereVisitorReservesId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|VisitorReservesLog whereVisitorTelephone($value)
 */
class VisitorReservesLog extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'visitor_reserves_log';

    protected $casts = [
        'device_groups' => 'array',
    ];

}
